/// 网络请求内置错误码
class HttpCode {
  HttpCode._();

  ///请求成功code List集合：部分应用可能有多个响应码表示请求成功
  static List<int> successCodeList = [];

  ///请求失败
  static int fail = -1;

  ///网络错误
  static int networkError = -2;

  ///网络返回数据格式化异常
  static int jsonParseException = -3;

  ///API连接异常
  static int apiConnectionException = -4;

  ///服务器异常
  static int serverException = -5;

  ///连接超时
  static int connectTimeout = -6;

  ///请求超时
  static int sendTimeout = -7;

  ///响应超时
  static int receiveTimeout = -8;

  ///请求取消
  static int cancel = -9;

  ///未知异常
  static int unKnowError = -10;

  ///默认
  static int defaultCode = -100;
}
